package com.kaishengit.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.MilestoneDao;
import com.kaishengit.pojo.Milestone;

@Service
@Transactional
public class MilestoneService {

	@Resource
	private MilestoneDao milestoneDao;
	
	public void save(Milestone milestone){
		milestoneDao.save(milestone);
	}
	
	public void delete(int id){
		milestoneDao.delete(id);
	}
	
	public Milestone findById(int id){
		return milestoneDao.findById(id);
	}
	
	public List<Milestone> findListByProperty(String propertyName,Object value){
		return milestoneDao.findListByProperty(propertyName, value);
	}
	
	public Milestone findByProperty(String propertyName,Object value){
		return milestoneDao.findByProperty(propertyName, value);
	}
	
	
}
